<?php
require_once dirname(__FILE__) . '/ORMBase.class.php';
function classToOrm($class = NULL) {
  $class = strtolower($class);
  switch ($class) {
    case 'assignee':
      require_once dirname(__FILE__) . '/ORMAssignee.class.php';
      return new ORMAssignee();
    case 'customer':
      require_once dirname(__FILE__) . '/ORMCustomer.class.php';
      return new ORMCustomer();
    case 'customercontact':
      require_once dirname(__FILE__) . '/ORMCustomerContact.class.php';
      return new ORMCustomerContact();
    case 'file':
      require_once dirname(__FILE__) . '/ORMFile.class.php';
      return new ORMFile();
    case 'mail':
      require_once dirname(__FILE__) . '/ORMMail.class.php';
      return new ORMMail();
    case 'myorder':
      require_once dirname(__FILE__) . '/ORMMyOrder.class.php';
      return new ORMMyOrder();
    case 'orderevent':
      require_once dirname(__FILE__) . '/ORMOrderEvent.class.php';
      return new ORMOrderEvent();
    case 'orderpackage':
      require_once dirname(__FILE__) . '/ORMOrderPackage.class.php';
      return new ORMOrderPackage();
    case 'orderproduce':
      require_once dirname(__FILE__) . '/ORMOrderProduce.class.php';
      return new ORMOrderProduce();
    case 'orderproduceevent':
      require_once dirname(__FILE__) . '/ORMOrderProduceEvent.class.php';
      return new ORMOrderProduceEvent();
    case 'orderpurchase':
      require_once dirname(__FILE__) . '/ORMOrderPurchase.class.php';
      return new ORMOrderPurchase();
    case 'ordertask':
      require_once dirname(__FILE__) . '/ORMOrderTask.class.php';
      return new ORMOrderTask();
    case 'ordertaskuser':
      require_once dirname(__FILE__) . '/ORMOrderTaskUser.class.php';
      return new ORMOrderTaskUser();
    case 'package':
      require_once dirname(__FILE__) . '/ORMPackage.class.php';
      return new ORMPackage();
    case 'packagepurchase':
      require_once dirname(__FILE__) . '/ORMPackagePurchase.class.php';
      return new ORMPackagePurchase();
    case 'product':
      require_once dirname(__FILE__) . '/ORMProduct.class.php';
      return new ORMProduct();
    case 'productselect':
      require_once dirname(__FILE__) . '/ORMProductSelect.class.php';
      return new ORMProductSelect();
    case 'sample':
      require_once dirname(__FILE__) . '/ORMSample.class.php';
      return new ORMSample();
    case 'sampleattribute':
      require_once dirname(__FILE__) . '/ORMSampleAttribute.class.php';
      return new ORMSampleAttribute();
    case 'sampleattributeoption':
      require_once dirname(__FILE__) . '/ORMSampleAttributeOption.class.php';
      return new ORMSampleAttributeOption();
    case 'source':
      require_once dirname(__FILE__) . '/ORMSource.class.php';
      return new ORMSource();
    case 'status':
      require_once dirname(__FILE__) . '/ORMStatus.class.php';
      return new ORMStatus();
    case 'user':
      require_once dirname(__FILE__) . '/ORMUser.class.php';
      return new ORMUser();
    case 'userattribute':
      require_once dirname(__FILE__) . '/ORMUserAttribute.class.php';
      return new ORMUserAttribute();
    default:
      return NULL;
  }
  return NULL;
}
?>
